#include <bits/stdc++.h>
using namespace std;
bool isAttention(vector<pair<int, int>> &t) {
  int end = -1;
  sort(t.begin(), t.end());
  for (auto i : t) {
    if (i.first >= end)
      end = i.second;
    else
      return false;
  }
  return true;
}
int main() {
  vector<pair<int, int>> tmp;
  tmp.push_back({0, 7});
  tmp.push_back({12, 14});
  tmp.push_back({8, 10});
  cout << boolalpha << isAttention(tmp);
  return 0;
}
